﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GesPro
{
    /// <summary>
    /// Fiche de rapport.
    /// </summary>
    public class Rapport
    {
        private string employe;
        private DateTime date;
        private List<SectionRapport> sections;

        /// <summary>
        /// Nom de l'employé ayant soumit le rapport.
        /// </summary>
        public string Employe
        {
            get
            {
                return employe;
            }
            set
            {
                employe = value;
            }
        }
        /// <summary>
        /// Date de soumission du rapport.
        /// </summary>
        public DateTime Date
        {
            get
            {
                return date;
            }
            set
            {
                date = value;
            }
        }
        /// <summary>
        /// Liste des sections du rapport.
        /// </summary>
        public List<SectionRapport> Sections
        {
            get
            {
                return sections;
            }
            set
            {
                sections = value;
            }
        }


        public Rapport()
        { 
            sections = new List<SectionRapport>();
        }

        public Rapport(string Employe)
        {
            employe = Employe;
            date = DateTime.Now;
            sections = new List<SectionRapport>();
        }

        public Rapport(string Employe, DateTime Date)
        {
            employe = Employe;
            date = Date;
            sections = new List<SectionRapport>();
        }

    }
}
